package com.onlinemeal.customer.dao;

import com.onlinemeal.customer.po.Customer;

public interface CustomerDao {
	/**
	 * 数据库添加用户
	 * @param customer
	 * @return
	 */
	public int addCustomer(Customer customer);
	/**
	 * 通过用户id查询用户信息
	 * @param id
	 * @return
	 */
	public Customer queryCustomerByID(String id);
	/**
	 * 数据库删除用户
	 * @param customer
	 * @return
	 */
	public int deleteCustomer(Customer customer);
	/**
	 * 数据库查询用户的激活码
	 * @param code
	 * @return
	 */
	public Customer findByCode(String code);
	/**
	 * 数据库通过uid修改用户的激活状态
	 * @param uid
	 * @param string
	 */
	public void updateState(String uid, String string);
	/**
	 * 通过用户账号和用户密码进行查询
	 * @param customer
	 */
	public Customer findByUsernameAndPassword(Customer customer);
}
